<h1><%= @project.name %></h1>
<h2>Summary</h2>
<%= render :partial => 'expenses/summary',
  :locals => { :min => @project.min_expense,
  :max => @project.max_expense,
  :avg => @project.avg_expense } %>
<h2>Expenses <%= image_tag 'indicator.gif', :id => 'form-indicator', :style => 'display:none;' %></h2>
<table id="expenses">
  <tr><th>Description</th><th>Amount</th><th>&nbsp;</th><th>&nbsp;</th></tr>
  <%= render :partial => 'expenses/expense', :collection => @project.expenses %>
</table>
<%= render :partial => 'expenses/total', :object => @project.total_expenses %>
<span id="notice"><%= flash[:notice] %></span>
<%= render :partial => 'expenses/new' %>
<%= link_to 'Project list', projects_path %>

